﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'usp_UPDMS_MNY_IN_OUT_MGT_Get_Living_Cost_For_Balance')
	BEGIN
		DROP Procedure usp_UPDMS_MNY_IN_OUT_MGT_Get_Living_Cost_For_Balance
	END
GO

SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
/******************************************************************************
**	Name : usp_UPDMS_MNY_IN_OUT_MGT_Get_Living_Cost_For_Balance
**	Desc : 생활비 차감관리 - 차감대상 생활비 목록
**	Test Exec Query : Exec usp_UPDMS_MNY_IN_OUT_MGT_Get_Living_Cost_For_Balance
**	Called by : Mny_Dac_UPDMS_MNY_IN_OUT_MGT.cs
**	Program ID : Mny3012p
**	Auth : 송시명
**	Date : 2010-06-08
*******************************************************************************
**	Change History
*******************************************************************************
**	Date:		Author:		Description:
**	--------	--------	---------------------------------------
**	
*******************************************************************************/
CREATE PROC [dbo].[usp_UPDMS_MNY_IN_OUT_MGT_Get_Living_Cost_For_Balance]
AS
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SET NOCOUNT ON

SELECT Seq AS [Value],
       '[' + Reg_Dt + '] ' + Contents +' [' + dbo.ufn_UPDMS_Convert_Money(Amount) + ']' AS [Text]
  FROM UPDMS_MNY_IN_OUT_MGT WITH(NOLOCK)
 WHERE Account = 'AC021'
   AND Reg_Dt >= CONVERT(VARCHAR(7), GETDATE(), 120) + '-01'
 ORDER BY Reg_Dt

GO